<template>
	<view class="goods">
		<view class="goods_list">
			<view class="goods_item">
				<image src="../../static/iphone12.jpg"></image>
				<view class="price">
					<text>￥2199</text>
					<text class="second_price">￥2499</text>
				</view>
				<view class="name">
					iphone12 全网通 32G
				</view>
			</view>

			<view class="goods_item">
				<image src="../../static/iphone12_02.png"></image>
				<view class="price">
					<text>￥2199</text>
					<text class="second_price">￥2499</text>
				</view>
				<view class="name">
					iphone12 全网通 64G
				</view>
			</view>

			<view class="goods_item">
				<image src="../../static/iphone12_03.jpg"></image>
				<view class="price">
					<text>￥2199</text>
					<text class="second_price">￥2499</text>
				</view>
				<view class="name">
					iphone12 全网通 128G
				</view>
			</view>

			<view class="goods_item">
				<image src="../../static/iphone12_04.jpg"></image>
				<view class="price">
					<text>￥2199</text>
					<text class="second_price">￥2499</text>
				</view>
				<view class="name">
					iphone12 全网通 256G
				</view>
			</view>

			<view class="goods_item">
				<image src="../../static/iphone12.jpg"></image>
				<view class="price">
					<text>￥2199</text>
					<text class="second_price">￥2499</text>
				</view>
				<view class="name">
					iphone12 全网通 32G
				</view>
			</view>

			<view class="goods_item">
				<image src="../../static/iphone12_02.png"></image>
				<view class="price">
					<text>￥2199</text>
					<text class="second_price">￥2499</text>
				</view>
				<view class="name">
					iphone12 全网通 64G
				</view>
			</view>

			<view class="goods_item">
				<image src="../../static/iphone12_03.jpg"></image>
				<view class="price">
					<text>￥2199</text>
					<text class="second_price">￥2499</text>
				</view>
				<view class="name">
					iphone12 全网通 128G
				</view>
			</view>

			<view class="goods_item">
				<image src="../../static/iphone12_04.jpg"></image>
				<view class="price">
					<text>￥2199</text>
					<text class="second_price">￥2499</text>
				</view>
				<view class="name">
					iphone12 全网通 256G
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		},
		onReachBottom() {
			console.log("触底了")
		},
		onPullDownRefresh() {
			console.log("下拉刷新了")
			setTimeout(() => {
				uni.stopPullDownRefresh()
			}, 1000)
		}
	}
</script>

<style lang="scss" scoped>
	.goods_list {
		padding: 0 15rpx;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;

		.goods_item {
			background: #FFFFFF;
			width: 355rpx;
			margin: 10rpx 0;
			padding: 15rpx;
			box-sizing: border-box;

			image {
				width: 100%;
				height: 250rpx;
			}

			.price {
				color: $shop-color;
				font-size: 30rpx;
				margin: 20rpx 0 10rpx 0;

				.second_price {
					color: #ccc;
					font-size: 20rpx;
					margin-left: 7rpx;
					text-decoration: line-through;
				}
			}

			.name {
				font-size: 28rpx;
				line-height: 50rpx;
				padding-bottom: 15rpx;
				padding-top: 10rpx;
			}
		}
	}
</style>
